import fetch from 'utils/fetch';
//分页
export function appManagePage(obj) {
    return fetch({
        url: '/api/admin/loanCommon/appManagePage',
        method: 'post',
        data: obj
    });
}
// 版本记录接口
export function listAppVersion(query) {
    return fetch({
        url: '/api/admin/loanCommon/listAppVersion',
        method: 'get',
        params: query
    });
}
// 强更状态
export function addNewAppVersion(obj) {
    return fetch({
        url: '/api/admin/loanCommon/addNewAppVersion',
        method: 'post',
        data: obj
    });
}
// 添加 编辑
export function addAppManage(obj) {
    return fetch({
        url: '/api/admin/loanCommon/addAppManage',
        method: 'post',
        data: obj
    });
}
// 编辑回显
export function getAppManage(obj) {
    return fetch({
        url: '/api/admin/loanCommon/getAppManage',
        method: 'post',
        data: obj
    });
}
// 删除按钮
export function deleteAppManage(obj) {
    return fetch({
        url: '/api/admin/loanCommon/deleteAppManage',
        method: 'post',
        data: obj
    });
}
// 展期状态
export function dealAppRollOver(obj) {
    return fetch({
        url: '/api/admin/loanCommon/dealAppRollOver',
        method: 'post',
        data: obj
    });
}
// 登录方式下拉
export function getDict() {
    return fetch({
        url: '/api/admin/loanCommon/getDict?code=LOGIN_TYPE',
        method: 'get'
    })
}
// 修改发布状态
export function uptOnlineStatus(id, query) {
    return fetch({
      url: '/api/admin/loanCommon/modify/online/' + id,
      method: 'put',
      params: query
    })
  }
// 上传安装包
export function upload(name, obj) {
    return fetch({
        url: '/api/admin/loanCommon/upload/' + name,
        method: 'post',
        data: obj
    });
}
// 保存地址
export function updateUrl(obj) {
    return fetch({
      url: '/api/admin/loanCommon/app/version/update',
      method: 'put',
      data: obj
    })
  }
